home *** CD-ROM | disk | FTP | other *** search
- property ancestor, pCursor
-
- on new me, buttonName, castName, theChannel, theStageLoc, descendant
- if objectp(descendant) then
- ancestor = new(script("generic button"), buttonName, castName, theChannel, theStageLoc, descendant)
- else
- ancestor = new(script("generic button"), buttonName, castName, theChannel, theStageLoc, me)
- end if
- pCursor = [member("point hand"), member("point hand mask")]
- return me
- end
-
- on performFunction me
- global gEnvironObj
- tell the stage
- playSFX(5)
- end tell
- if tooManyOpenWindows() then
- exit
- end if
- if not isMemoryAvailable("open search help") then
- exit
- end if
- fileName = getModulesFolder(gEnvironObj) & "SrchHelp"
- winRect = centerRect(rect(0, 0, 576, 416))
- newWindow = new(script("MIAW Object"), "Search Help", fileName, winRect, 0)
- if objectp(newWindow) then
- openMe(newWindow)
- showMe(newWindow)
- end if
- end
-
- on enable me
- enable(ancestor)
- set the cursor of sprite the pChannel of me to pCursor
- end
-
- on disable me
- disable(ancestor)
- set the cursor of sprite the pChannel of me to -1
- end
-